Post

Replies

Boosts

Views

Activity

List not updating when source of truth is modified on macOS
I've been experimenting with SwiftUI, in particular with a Multiplatform app. My app is laid up like the Fruta sample app, but my list is passing an item as a binding to a detail view which can edit the selected item. The app works fine enough, but I noticed something that I feel might be a bug. After the detail view is accessed, when the source of truth (a simple array of items in my case) is updated the List is not updated. The actual array from within the view is correctly updated, I verified this by adding a label counting the items on top of my list and it goes up every time I add an item, but the list doesn't show the new items. The list only starts updating again if I navigate away and back to the list using the sidebar. Oddly enough modifying the items does reflect that change in the List view, but adding new items doesn't. What's even more bizarre is that it just works on iPadOS. I have uploaded my project to Droplr so maybe you guys can check it out and let me know if I'm missing something? https:// d.pr/ f/ Z67vax
1
0
771
Jul ’20
Can you install macOS Ventura on an separate volume? (Apple Silicon)
Hey guys I want to get a macOS 13 test environment going but I ran into a big of a snag… the way I usually go about this is I install the beta on a separate volume (an external drive in this case). I achieve this by enrolling my main machine, downloading the beta installer via system update and then pointing it to the external drive. Unfortunately I was in for a nasty surprise when I tried doing this and my Mac Studio got updated straight away instead (ended up having to restore it with Configurator) Apple has a guide on how to create a separate volume and install macOS 12 on it so you can keep a stable OS on the side but I find that counter-intuitive… why can’t I just do a fresh install of Ventura on that second volume instead? I suppose I could install Monterey on the external drive and then upgrade that installation to Ventura but I’d rather skip the extra step if I can - anybody Know if there’s a way to?
8
6
4.2k
Jun ’22
NavigationSplitView not working as shown in "What's new with SwiftUI" session
Hey guys I'm trying to follow along with the WWDC session titled "What's new with SwiftUI". They say it's possible to have the detail view of a NavigationSplitView be determined based on a state variable by using the following code: However, and I'm kinda going crazy here, this code does NOT work on iOS whatsoever, the view will remain the one determined by "default" Switch case. It works fine on macOS, but iOS (and iPadOS) simply will not change the detail view no matter what. I have tried working around it for hours but it seems to boil down to the view never being redrawn... has anyone tried this? Is this just a iOS bug??
5
6
5.9k
Jun ’22